package com.bodekeji.dati.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bodekeji.dati.repository.DatiRepository;

@Service
public class DatiService {

	@Resource
	private DatiRepository datiRepository;
	
	public List<Map<String, Object>> findSj(int n){
		return datiRepository.findSj(n);
	}
	
	public int insertDatilishi(String openid,int defen) {
		return datiRepository.insertDatilishi(openid, defen);
	}
	
	public List<Map<String, Object>> findDatilishiByOpenid(String openid){
		return datiRepository.findDatilishiByOpenid(openid);
	}
	
}
